package cn.zjweu.service.impl;

import cn.zjweu.pojo.Admin;
import cn.zjweu.pojo.User;
import cn.zjweu.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserLoginImpl implements LoginService {

    @Autowired
    private cn.zjweu.mapper.LoginMapper LoginMapper;

    @Override
    public User UserLogin(String user_name, String user_pwd) {
        return LoginMapper.UserLogin(user_name, user_pwd);
    }

    @Override
    public Admin AdminLogin(String user_name, String user_pwd) {
        return LoginMapper.AdminLogin(user_name, user_pwd);
    }
}
